package com.l024.framework.event;

import org.greenrobot.eventbus.EventBus;

/**
 *  EventBus管理类
 */
public class EventBusManager {

    //更新好友列表
    public static final int FLAY_UPDATE_FRIEND_LIST = 1000;

    /**
     * 注册
     */
    public static void register(Object subscriber){
        EventBus.getDefault().register(subscriber);
    }

    /**
     * 反注册
     */
    public static void unregister(Object subscriber){
        EventBus.getDefault().unregister(subscriber);
    }

    /**
     * post
     */
    public static void post(int type){
        EventBus.getDefault().post(new MessageEvent(type));
    }
}
